

import javax.swing.AbstractListModel;
import javax.swing.DefaultListModel;
import javax.swing.ListModel;
import javax.swing.event.EventListenerList;
import javax.swing.event.ListDataListener;

public class mymodel extends AbstractListModel    {
	
	public mymodel (){
	}


	public Object getElementAt(int index) {
		return relay.servidores.keySet().toArray()[index];
	}

	public int getSize() {
		return relay.servidores.size();

	}


	 public void refrescar ()
	 {
		 super.fireIntervalAdded(this, 0, relay.servidores.keySet().toArray().length);
	 }


	 

}
